package com.gdkj.constant;

import com.gdkj.enums.RoomTypeEnums;

import java.util.HashMap;
import java.util.Map;

public class CommonConstant {
    public static final Integer HTTP_TIME_OUT = 10;

    public static final Integer SIGN_EXPIRE = 70001;

    public static final String IM_OK_STATE = "OK";

    public static final String IM_SERVICE_NAME= "group_open_http_svc";

    public static final String IM_SERVICE_NAME_SINGLE = "openim";

    public static final String IM_COMMAND_CREATE_GROUP = "create_group";
    public static final String IM_COMMAND_DESTROY_GROUP = "destroy_group";
    public static final String IM_SEND_GROUP_MESSAGE = "send_group_msg";
    public static final String IM_SEND_SYSTEM_NOTIFY = "send_group_system_notification";
    public static final String IM_DELETE_GROUP_MEMBER = "delete_group_member";
    public static final String IM_GET_GROUP_INFO = "get_group_info";

    public static final String IM_SEND_TO_SINGLE = "sendmsg";

    /**
    * 排队列表配置
    */
    public static final String PARTY_CONFIG = "home_party_list_num";
    /**
    * 召集玩友配置
    */
    public static final String CALL_FRIENDS_CONFIG = "call_friends_config";
    /**
     * 你画我猜退房规则
     */
    public static final String DRAW_INTO_ROOM_CONFIG = "draw_into_room_config";

    /**
     * @Author zhangp
     * @Description  弹窗配置
     * @Date 2022/10/31
     **/
    public static final String DIGGING_WINDOW_CONFIG = "digging_window_config";

    /**
     * 你画我猜规则
     */
    public static final String  DRAW_RULER_CONFIG = "draw_ruler_config";

    /**
     * 你画我猜换词
     */
    public static final String  DRAW_CHANGE_WORD_CONFIG = "draw_change_word_config";

    public static final Integer TARGET_TO_ALL = 1000;//广播消息
    public static final Integer TARGET_TO_ANCHOR = 1001; //主播需要处理的消息
    public static final Integer TARGET_TO_AUDIENCE = 1002;//观众需要处理的消息
    public static final Integer TARGET_TO_SYSTEM = 1003;//系统需要处理的消息

    /**
    * 麦位数量
    */
    public static final Map<Integer, Integer> MIKE_COUNT_MAP = new HashMap<Integer, Integer>(){
        {
            put(RoomTypeEnums.DRAW_GUSS.getType(), 6);
            put(RoomTypeEnums.GROUP_CHAT_PARTY.getType(), 8);
            put(RoomTypeEnums.KTV.getType(), 6);
            put(RoomTypeEnums.WOLF_PERSON_KILL.getType(), 9);
            put(RoomTypeEnums.GoBang.getType(), 2);
            put(RoomTypeEnums.Checkers.getType(), 2);
            put(RoomTypeEnums.GO_BANG_SMART.getType(), 2);
            put(RoomTypeEnums.SWEEP_THUNDER.getType(), 6);
            put(RoomTypeEnums.NUMBER_BOMB.getType(), 6);
            put(RoomTypeEnums.FIND_FAULT_TOGETHER.getType(), 2);
            put(RoomTypeEnums.THROW_DARTS.getType(), 2);
            put(RoomTypeEnums.CLEAR.getType(), 2);
            put(RoomTypeEnums.FLY_CHECKERS_TWO.getType(),2);
            put(RoomTypeEnums.FLY_CHECKERS_MANNY.getType(),4);
            put(RoomTypeEnums.FLY_CHECKERS_FOUR.getType(),4);
            put(RoomTypeEnums.FLY_CHECKERS_SMART.getType(),2);
        }
    };

    public static final Integer PAGE_DEFAULT = 1;
    public static final Integer ONLINE_USER_LIMIT_DEFAULT = 100;
    public static final Integer FRIEND_PLAYER_LIMIT_DEFAULT = 20;
    public static final Integer MIKE_NUMBER_ONE = 1;

    /**
     * 找人玩db配置key
     */
    public static final String FIND_PEOPLE_PLAY_NUMBER_CONFIG = "FindPeoplePlayNumberConfig";

    public static final Integer PAGE_LIMIT_FIFTY = 50;

    public static final Double DEFAULT_LONGITUDE = 87.60379512695312;

    public static final Double DEFAULT_LATITUDE = 43.82526589702003;

    public static final String ES_USER_INDEX_NAME = "_users_user_info";

    public static final String ES_MOMENTS = "_monments";

    public static final String DEFAULT_MESSAGE = "欢迎来到kigo房间，平台禁止未成年人充值打赏、禁止诱导用户打赏，房间内请文明发言且严禁出现违法违规、低俗色情、赌博涉政、人身伤害等内容，平台将24小时监管巡查，请大家共同遵守、监督";

    public static final String STREAM_SEPARATOR = "_";

    public static final Long ZERO_LONG = 0L;

    public static final String HEADER_DEVICE_ID = "device-id";

    public static final String WELCOME_MESSAGE = "roomWelcomeMessage";

    /**
     * 会员权益配置
     */
    public static final String MEMBER_BENEFITS_CONFIG = "memberBenefitsConfig";

    /**
     * AppId: 请使用申请的app-id
     * 注意：请联系SUD申请
     */
    public static final String SUD_APP_ID = "1563089414654976002";

    /**
     * AppSecret: 请使用申请的app-secret
     * 注意：请联系SUD申请
     */
    public static final String SUD_APP_SECRET = "6NnoR2KhrLso1Mb0s3mXxVnHtMN79jz4";

    /**
     * 狼人杀游戏id
     */
    public static final String WOLF_GAME_ID = "1472142747708284929";

    /**
     * 公有配置
     */
    public static final String CONFIG_PUBLIC = "configpub";

    /**
     * 私有配置
     */
    public static final String CONFIG_PRI = "configpri";

    /**
     * 游戏相关配置
     */
    public static final String CONFIG_LOTTERY_DRAW = "configLotteryDraw";

    /**
     * 聊天匹配-999
     */
    public static final Integer ROOM_TYPE_CHAT_MATCH = 999;

    /**
     * h5页面
     */
    public static final Integer ROOM_TYPE_H5_PAGE = 1000;

    /**
     * 狼人杀房间银豆配置
     */
    public static final String WOLF_KILL_ROOM_SILVER_BEAN_CONFIG = "WolfKillRoomSilverBeanConfig";

    /**
     * 狼人杀连胜局数
     */
    public static final Long  WOLF_KILL_CONTINUE_WIN_TIMES = 3L;

    /**
     * 星球探索类型
     */
    public static final Integer STAR_DIG_TYPE = 1001;

    /**
     * 全员推送
     */
    public static final String IM_ALL_PUSH_SERVICE_NAME = "all_member_push";

    /**
     * 全员推送
     */
    public static final String IM_ALL_PUSH_SERVICE_NAME_SINGLE = "im_push";

    /**
     * im后台账户
     */
    public static final String ADMIN = "admin";

    /**
     * 版本号
     */
    public static final String APP_VERSION_HEADER_STR = "app-version";

    /**
     * 平台 android,ios
     */
    public static final String APP_PLATFORM_STR = "platform";

    /**
     * 前端header 平台 1.h5 2.ios 3.安卓
     */
    public static final String APP_FRONT_STR = "app-front";

    /**
     * token头
     */
    public static final String APP_Authorization = "Authorization";

    /**
     * 任意门最大距离
     */
    public static final Integer ANY_DOOR_MAX_DISTANCE = 500000;

    /**
     * 任意门排名阀值
     */
    public static final Integer ANY_DOOR_RANK_LIMIT = 100;

    /**
     * 任意门分页大小
     */
    public static final Integer ANY_DOOR_PAGE_SIZE = 3;

    /**
     * 默认城市
     */
    public static final String DEFAULT_CITY_NAME = "乌鲁木齐市";

    /**
     * 头部渠道
     */
    public static final String HEADER_CHANNEL = "channel";

    /**
     * 华为审核版本
     */
    public static final String HUAWEI_VERIFY_VERSIONS = "huawei_verify_versions";

    /**
     * 华为渠道
     */
    public static final String CHANNEL_HUAWEI = "huawei";

    /**
     * 最小游客id
     */
    public static final Integer MAX_TOURIST_ID = 1900000000;

    /**
     * 包机卡配置key
     **/
    public static final String PUSH_COIN_CHARTER_CONFIG = "pushCoinCharterConfig";

    /**
     * 最大导出数量
     */
    public static final Integer EXPORT_MAX_AMOUNT = 100000;
}